package com.commonmark;

import org.commonmark.node.Node;
import org.commonmark.parser.Parser;
import org.commonmark.renderer.html.HtmlRenderer;
import org.junit.Test;

public class CommonmarkTest {
    @Test
    public void commonmarkTest_1() {
        Parser parser = Parser.builder().build();
        Node document = parser.parse("# My name is *huhx*");
        HtmlRenderer renderer = HtmlRenderer.builder().build();
        String renderString = renderer.render(document);  // <h1>My name is <em>huhx</em></h1>
        System.out.println(renderString);
    }
}
